package org.cloudie.docs.editor.client.commands.generic;

import org.cloudie.docs.editor.client.commands.Command;
import org.cloudie.docs.editor.client.windows.GenericWindow;


public class WindowAddCommand extends Command {

  public final static int serialUid = 25;
  
  private String windowId, title;
  private GenericWindow.WindowContents contents;
  private int x, y, width, height;
	  
  public WindowAddCommand(String windowId, String title, GenericWindow.WindowContents contents,
	    int x, int y, int width, int height) {
	super("Add desktop window.");
	this.windowId = windowId;
	this.title = title;
    this.contents = contents;
    this.x = x;
    this.y = y;
    this.width = width;
    this.height = height;
  }

  public String getWindowId() {
    return windowId;
  }

  public void setWindowId(String windowId) {
    this.windowId = windowId;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public GenericWindow.WindowContents getContents() {
    return contents;
  }

  public void setContents(GenericWindow.WindowContents contents) {
    this.contents = contents;
  }

  public int getX() {
    return x;
  }

  public void setX(int x) {
    this.x = x;
  }

  public int getY() {
    return y;
  }

  public void setY(int y) {
    this.y = y;
  }

  public int getWidth() {
    return width;
  }

  public void setWidth(int width) {
    this.width = width;
  }

  public int getHeight() {
    return height;
  }

  public void setHeight(int height) {
    this.height = height;
  }
  
  @Override
  public int getCommandId() {
    return serialUid;
  }
  
}
